#if !defined(AFX_ATTATCHLISTVIEW_H__A14DBB19_C2DA_4924_A3EB_7F0D8952BF82__INCLUDED_)
#define AFX_ATTATCHLISTVIEW_H__A14DBB19_C2DA_4924_A3EB_7F0D8952BF82__INCLUDED_

#pragma once

#include "CHReportListView.h"

class CAttatchListView : public CHReportListView
{
protected:
	CAttatchListView();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CAttatchListView)

public:

public:
	static CString GetTempDir();
	CImageList m_imageList;
	void ShowAttatch(int nNodeId);
	protected:
	virtual void OnDraw(CDC* pDC);
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
public:
	void ClearWhenNodeId(int nNodeId);
	int GetCurNodeId() { return m_nCurNodeId; }
protected:
	int m_nCurNodeId;
	virtual ~CAttatchListView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:
	virtual void OnRclickImpl(CPoint pt, int nItem);
	virtual void OnDbClickImpl(CPoint pt, int nItem);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnAttachmentAdd();
	afx_msg void OnAttachmentDel();
	afx_msg void OnAttachmentOpen();
	afx_msg void OnAttachmentOut();
	afx_msg void OnAttachmentRename();
	DECLARE_MESSAGE_MAP()
};

#endif // !defined(AFX_ATTATCHLISTVIEW_H__A14DBB19_C2DA_4924_A3EB_7F0D8952BF82__INCLUDED_)
